package ReefStats::Schema::ReefStatsDB::Maillog;

use strict;
use warnings;
use base 'DBIx::Class';
use ReefStats::Schema::DataTypes;

__PACKAGE__->load_components('Core');
__PACKAGE__->table('maillog');
__PACKAGE__->resultset_class('ReefStats::Schema::ReefStatsDB::Maillog::ResultSet');
__PACKAGE__->add_columns(
    timestamp     => { @_datetime,    @_not_null, @_default_nodate, },
    sender        => { @_varchar_100, @_not_null, },
    recipient     => { @_varchar_100, @_not_null, },
    subject       => { @_varchar_255, @_nullable, },
    action        => { @_varchar_45,  @_nullable, },
    reason        => { @_varchar_45,  @_nullable, },
    reasonext     => { @_varchar_100, @_nullable, },
    reasonextorig => { @_varchar_100, @_not_null, },
    score         => { @_float,       @_nullable, },
    sourceip      => { @_varchar_100, @_nullable, },
    msgid         => { @_varchar_45,  @_not_null, },
    domain        => { @_varchar_45,  @_not_null, },
    size          => { @_int_10,      @_nullable, },
    cluster       => { @_varchar_100, @_not_null, },
);
__PACKAGE__->set_primary_key(qw(timestamp sender msgid));

1;

__END__

=pod

=head1 NAME

ReefStats::Schema::ReefStatsDB::Maillog

=cut

